package com.zplus.managers.petservices;

import com.zplus.managers.petservices.entities.AdoptRequest;
import com.zplus.managers.petservices.mappers.AdoptRequestMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import static org.junit.jupiter.api.Assertions.*;
import java.sql.Date;
import java.util.List;

@SpringBootTest
public class AdoptRequestDemos
{
    @Autowired
    private AdoptRequestMapper armapper;
    @Test
    void testQueryRequestByDate()
    {
        String curDate = "2023-7-17";

        List<AdoptRequest> adoptRequests = armapper.queryRequestByDate(curDate);
        assertEquals(adoptRequests.size(), 1);
    }
}
